package com.yonyou.lxp.account.entity;

import android.os.Parcel;
import android.os.Parcelable;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by liuxiaopeng on 16/2/28.
 * 收入实体类
 */
@Table(name = "ExpenditureInfo")
public class ExpenditureInfo implements Parcelable {
    @Column(name = "e_id", isId = true)
    private int e_id;

//    @Column(name = "e_name")
//    public String e_name;

    @Column(name = "e_money")
    public String e_money;

    @Column(name = "e_time")
    private long e_time;

    @Column(name = "e_remarks")
    private String e_remarks;

    @Column(name = "t_id")
    private int t_id;

    @Column(name = "t_name")
    private String t_name;

    @Column(name = "t_type")
    private String t_type;


    public int getE_id() {
        return e_id;
    }

    public void setE_id(int e_id) {
        this.e_id = e_id;
    }

    public String getE_money() {
        return e_money;
    }

    public void setE_money(String e_money) {
        this.e_money = e_money;
    }
//
//    public String getE_name() {
//        return e_name;
//    }
//
//    public void setE_name(String e_name) {
//        this.e_name = e_name;
//    }

    public String getE_remarks() {
        return e_remarks;
    }

    public void setE_remarks(String e_remarks) {
        this.e_remarks = e_remarks;
    }

    public long getE_time() {
        return e_time;
    }

    public void setE_time(long e_time) {
        this.e_time = e_time;
    }

    public int getT_id() {
        return t_id;
    }

    public void setT_id(int t_id) {
        this.t_id = t_id;
    }

    public String getT_type() {
        return t_type;
    }

    public void setT_type(String t_type) {
        this.t_type = t_type;
    }

    public String getT_name() {
        return t_name;
    }

    public void setT_name(String t_name) {
        this.t_name = t_name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.e_id);
        dest.writeString(this.e_money);
        dest.writeLong(this.e_time);
        dest.writeString(this.e_remarks);
        dest.writeInt(this.t_id);
        dest.writeString(this.t_name);
        dest.writeString(this.t_type);
    }

    public ExpenditureInfo() {
    }

    protected ExpenditureInfo(Parcel in) {
        this.e_id = in.readInt();
        this.e_money = in.readString();
        this.e_time = in.readLong();
        this.e_remarks = in.readString();
        this.t_id = in.readInt();
        this.t_name = in.readString();
        this.t_type = in.readString();
    }

    public static final Parcelable.Creator<ExpenditureInfo> CREATOR = new Parcelable.Creator<ExpenditureInfo>() {
        @Override
        public ExpenditureInfo createFromParcel(Parcel source) {
            return new ExpenditureInfo(source);
        }

        @Override
        public ExpenditureInfo[] newArray(int size) {
            return new ExpenditureInfo[size];
        }
    };
}
